{include file="admin/public/header" /}
<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>分类处理</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link" href="{:url('admin/category/index')}" >
                                <i class="fa fa-chevron-up"></i>
                                分类列表
                            </a>
                            <a class="collapse-link" href="{:url('admin/category/edit')}" >
                                <i class="fa fa-chevron-up"></i>
                                添加分类
                            </a>
                            
                        </div>
                    </div>
                    <style type="text/css">
                    .form-group{overflow: hidden;}
                    </style>
                    <div class="ibox-content">
                        <div class="row">
                         <div class="col-sm-12  ">
                                <div class="mail-box-header">
                                    
                                    <h2>
                                    新建分类
                                </h2>
                                </div>
                                <div class="mail-box">
                                    <form role="form" method="post" action="{:url('systems/publics/edit')}" class ="cmzForm">
                                        
                                    <div class="mail-body">
                                       

                                        <div class="form-group" style="clear:both;">
                                            <label class="col-sm-2 control-label">上级：</label>
                                            <div class="col-sm-10">
                                                <select class="form-control" id="" name="parent_id" style="">
                                                    <option value="0">作为一级分类</option>
                                                    {volist name="category" id="v"}
                                                    <option value="{$v.id}" {if condition="$id==$v['parent_id']"} selected="" {/if}>{$v.title}</option>
                                                    {/volist}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group" style="clear:both;">
                                            <label class="col-sm-2 control-label">标题：</label>
                                            <div class="col-sm-10">
                                              <input type="text" class="form-control" name="title" value="{$title}">
                                            </div>
                                        </div>

                                         <div class="form-group" style="clear:both;">
                                            <label class="col-sm-2 control-label">ico(以awesome样式为准)：</label>
                                            <div class="col-sm-10">
                                              <input type="text" class="form-control" name="ico" value="{$ico}">
                                            </div>
                                        </div>

                                         <div class="form-group" style="clear:both;">
                                            <label class="col-sm-2 control-label">排序：</label>
                                            <div class="col-sm-10">
                                              <input type="text" class="form-control" name="sort" value="{$sort}">
                                            </div>
                                        </div>
                                      </div>
                                        <div class="clear-file" style="clear:both;overflow:hidden;padding-top:10px;">
                                            <a href="javascript:;" style="margin-right:20px" table="{:encode('category')}" where="<?php if($id){ ?>{:encode('id-'.$id)}<?php } ?>" returnurl="{:url('admin/category/index')}"  class="btn btn-sm btn-primary pull-right m-t-n-xs changepas cmzedit"><strong>提交</strong>
                                            </a>
                                          
                                        </div>
                                      
                                    </div>
                          </div>
                    </form> 
                </div>
            </div>
      
        </div>

{include file="admin/public/footer" /}

